<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div{
            width: 100px;
            border: 1px solid red;
            text-indent: 2em;
            white-space: normal;
        }
    </style>
</head>
<body>

        <!--
                white-space         强制不换行
                     nowrap         强制不换行
                     normal         不换行

        -->
    <div>
        欢迎大家学习前端基础lang
    </div>
</body>
</html>